We are working on implementing Performance Graphing for a custom plugin that checks all filesystems on a host, and sends NRDS output as such:
All filesystems OK | /=52%;90;95;0;100 /boot=20%;90;95;0;100 /home=20%;90;95;0;100 /log=4%;90;95;0;100 /usr=95%;90;95;0;100 /var=55%;90;95;0;100 /var/lib/libvirt=1%;90;95;0;100 /var/log/audit=9%;90;95;0;100
This actually seems to work, and we can see graphs showing up in the XI interface for the service. However, in each case the system ends up naming the filesystem _var_lib_libvirt instead of /var/lib/libvirt
What could be replacing the "/"s with "_"?
Performance Graphing in XI - Weird Output
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Performance Graphing in XI - Weird Output
/ is considered an illegal character that is replaced with _ to avoid issues with creating files and causing vulnerabilities in the xi system. There really isn't too much you can do about it. allowing those characters would cause some pretty severe issues within the filesystem.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
matt.uebel
- Posts: 84
- Joined: Thu Jun 20, 2013 7:43 am
Re: Performance Graphing in XI - Weird Output
is there an escape character we could use?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Performance Graphing in XI - Weird Output
I waited a little bit, just to confirm, and there is not a way to escape those, for the reasons mentioned above.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.