Hi,
Please find my template for Nexsan Device (SAN Storage) based on perl script:
Cpu Usage % on each controller:
Memory usage % on each controller:
Array usage % on each RAID array:
Fiber traffic in bits/sec for each Fiber Host:
ISCSI traffic in bits/sec for each ISCSI port:
Nexsan - Template
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Thu Sep 27, 2012 5:09 am
Re: Nexsan - Template
Find Script and Template attached
I've modified the script found on http://www.kript.net/wordpress/?p=748 used for Nagios to be compatible with Cacti.
I've modified the script found on http://www.kript.net/wordpress/?p=748 used for Nagios to be compatible with Cacti.
- Attachments
-
- Cacti - Host Nexsan Beast template.xml
- (192.89 KiB) Downloaded 305 times
-
- check_http_xpath.pl
- Put in Cacti Script folder
- (16.39 KiB) Downloaded 286 times
Re: Nexsan - Template
Thanks for doing this! Might have saved me a job..
I was trying to import the XML into our 0.8.7i installation, and all I got was "XML Parse Error", no matter if I copied and pasted, or used the file import.
Trying the same thing via the cli said it had read 197519 bytes of XML data, but no additional templates turned up, so I expect it was just silently failing.
Can anyone else get this to work, and if so, what version of Cacti were they using?
Can I ask what version of cacti was used to create/export the Template?
thanks,
John
I was trying to import the XML into our 0.8.7i installation, and all I got was "XML Parse Error", no matter if I copied and pasted, or used the file import.
Trying the same thing via the cli said it had read 197519 bytes of XML data, but no additional templates turned up, so I expect it was just silently failing.
Can anyone else get this to work, and if so, what version of Cacti were they using?
Can I ask what version of cacti was used to create/export the Template?
thanks,
John
Re: Nexsan - Template
My guess in the Host Template attached is that the export was done to the browser and then copied and pasted? Something has introduced non-XML formatting e.g.;
- <cacti>
I've tried stripping that out but it still fails - my understanding of the format used is obviously not good enough!. Any chance the original poster could try re-exporting the host template as an XML file and re-posting here?
cheers muchly..
- <cacti>
I've tried stripping that out but it still fails - my understanding of the format used is obviously not good enough!. Any chance the original poster could try re-exporting the host template as an XML file and re-posting here?
cheers muchly..
-
- Posts: 1
- Joined: Wed Dec 19, 2012 5:42 pm
Re: Nexsan - Template
Hi - I was able to get this working by opening the xml file and replacing the following strings:
<path_cacti>
<grepstr1>
<grepstr2>
<grepstr3>
<grepstr4>
<grepstr5>
<grepstr6>
...with the same strings without the "<" and the ">" characters.
Then the XML Parse error went away.
Then you need to open each of the Data Input Methods and put the "<" and ">" characters back into the Input String for the strings above.
Kinda tedious, but it worked for me.
I'm sure there's a more elegant method....
<path_cacti>
<grepstr1>
<grepstr2>
<grepstr3>
<grepstr4>
<grepstr5>
<grepstr6>
...with the same strings without the "<" and the ">" characters.
Then the XML Parse error went away.
Then you need to open each of the Data Input Methods and put the "<" and ">" characters back into the Input String for the strings above.
Kinda tedious, but it worked for me.
I'm sure there's a more elegant method....
Re: Nexsan - Template
No chance you could post the fixed versions, are there?
cheers muchly
cheers muchly
Re: Nexsan - Template
Here's a fixed version of the template which "seems" to work. I'm currently testing it right now. "Seems" because I'm just starting with Cacti
The perl script is exactly the same.
This perl script, will be executed once for each graph?
Thanks!
The perl script is exactly the same.
This perl script, will be executed once for each graph?
Thanks!
- Attachments
-
- cacti_host_template_nexsan_beast.xml
- Hope this one works ok!
- (208.52 KiB) Downloaded 235 times
Who is online
Users browsing this forum: No registered users and 17 guests